home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / crwdemo / formula.frm < prev    next >
Text File  |  1995-12-05  |  9KB  |  286 lines

  1. VERSION 2.00
  2. Begin Form Form5 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Form5"
  5.    ClientHeight    =   6000
  6.    ClientLeft      =   945
  7.    ClientTop       =   1725
  8.    ClientWidth     =   8685
  9.    Height          =   6690
  10.    Left            =   885
  11.    LinkTopic       =   "Form5"
  12.    ScaleHeight     =   6000
  13.    ScaleWidth      =   8685
  14.    Top             =   1095
  15.    Width           =   8805
  16.    Begin TextBox RecordSelectionString 
  17.       Height          =   855
  18.       Left            =   240
  19.       TabIndex        =   5
  20.       Text            =   "   "
  21.       Top             =   1320
  22.       Width           =   7815
  23.    End
  24.    Begin TextBox ReturnValue 
  25.       Height          =   495
  26.       Left            =   240
  27.       TabIndex        =   4
  28.       Top             =   4200
  29.       Width           =   4575
  30.    End
  31.    Begin TextBox GroupSelectionString 
  32.       Height          =   855
  33.       Left            =   240
  34.       TabIndex        =   3
  35.       Top             =   2880
  36.       Width           =   7815
  37.    End
  38.    Begin Label Label4 
  39.       BackColor       =   &H00C0C0C0&
  40.       Caption         =   "Status "
  41.       Height          =   255
  42.       Left            =   240
  43.       TabIndex        =   6
  44.       Top             =   3960
  45.       Width           =   2535
  46.    End
  47.    Begin Label Label3 
  48.       BackColor       =   &H00C0C0C0&
  49.       Caption         =   "Group Selection"
  50.       Height          =   255
  51.       Left            =   240
  52.       TabIndex        =   2
  53.       Top             =   2400
  54.       Width           =   6375
  55.    End
  56.    Begin Label Label2 
  57.       BackColor       =   &H00C0C0C0&
  58.       Caption         =   "Record Selection :"
  59.       Height          =   255
  60.       Left            =   240
  61.       TabIndex        =   1
  62.       Top             =   960
  63.       Width           =   2055
  64.    End
  65.    Begin Label Label1 
  66.       BackColor       =   &H00C0C0C0&
  67.       Caption         =   "Selection Screen"
  68.       FontBold        =   -1  'True
  69.       FontItalic      =   0   'False
  70.       FontName        =   "System"
  71.       FontSize        =   9.75
  72.       FontStrikethru  =   0   'False
  73.       FontUnderline   =   0   'False
  74.       Height          =   495
  75.       Left            =   240
  76.       TabIndex        =   0
  77.       Top             =   120
  78.       Width           =   2655
  79.    End
  80.    Begin Menu Sel1 
  81.       Caption         =   "&Record Selection"
  82.       Begin Menu Sel2 
  83.          Caption         =   "&Get Selection"
  84.       End
  85.       Begin Menu Sel3 
  86.          Caption         =   "&Clear Selection"
  87.       End
  88.       Begin Menu Sel4 
  89.          Caption         =   "&Accept Settings"
  90.       End
  91.    End
  92.    Begin Menu Sel5 
  93.       Caption         =   "&Group Selection"
  94.       Begin Menu Sel6 
  95.          Caption         =   "&Get Selection"
  96.       End
  97.       Begin Menu Sel7 
  98.          Caption         =   "&Clear Selection"
  99.       End
  100.       Begin Menu Sel8 
  101.          Caption         =   "&Accept Settings"
  102.       End
  103.    End
  104.    Begin Menu Sel9 
  105.       Caption         =   "&Close Form"
  106.    End
  107. End
  108. Sub Command1_Click ()
  109.     Unload Form5
  110. End Sub
  111.  
  112. Sub Command2_Click ()
  113.           RecSel = RecordSelectionString.Text
  114.           Rem MsgBox (RecSel)
  115.           SetSelectionRtn% = PESetSelectionFormula(jobnum, RecSel)
  116.           If SetSelectionRtn% = 1 Then
  117.             ReturnValue.Text = "PESetSelectionFormula Success"
  118.             'Form1.Rslt.Text = "PESetSelFormula Success "
  119.           Else
  120.             ReturnValue.Text = "PeSetSelectionFormula Failure"
  121.             'Form1.Rslt.Text = "PESetSelFormula Failure"
  122.           End If
  123.  
  124. End Sub
  125.  
  126. Sub Command3_Click ()
  127.     RecordSelectionString.Text = " "
  128.     RecordSelectionString.SetFocus
  129. End Sub
  130.  
  131. Sub Command4_Click ()
  132.     SetGroupSelectionRtn% = PESetGroupSelectionFormula(jobnum, GroupSelectionString)
  133.     If SetGroupSelectionRtn% = 1 Then
  134.         ReturnValue.Text = "SetGroupSelectionFormula Success"
  135.         'Form1.Rslt.Text = "SetGrpSelFormula Success"
  136.     Else
  137.         ReturnValue.Text = "SetGroupSelectionFormula Failure"
  138.         'Form1.Rslt.Text = "SetGrpSelFormula Failure"
  139.     End If
  140.     
  141.  
  142. End Sub
  143.  
  144. Sub Command5_Click ()
  145.     GroupSelectionString.Text = " "
  146.     GroupSelectionString.SetFocus
  147. End Sub
  148.  
  149. Sub Command6_Click ()
  150.     ReturnValue.SetFocus
  151. End Sub
  152.  
  153. Sub Command7_Click ()
  154.           Rtn1% = PEGetSelectionFormula(jobnum, TextHandle%, TextLength%)
  155.           If Rtn1% = 1 Then
  156.             ReturnValue.Text = "PEGetSelectionFormula Success 1"
  157.             'Form1.Rslt.Text = "PEGetSelFormula Success"
  158.           Else
  159.             ReturnValue.Text = "PEGetSelectionFormula Failure 1"
  160.             'Form1.Rslt.Text = "PEGetSelFormula Failure"
  161.           End If
  162.  
  163.           Rtn2% = PEGetHandleString(TextHandle%, StrBuffer$, TextLength%)
  164.           If Rtn2% = 1 Then
  165.             RecordSelectionString = StrBuffer$
  166.             ReturnValue.Text = "PEGetSelectionFormula Success 1"
  167.           Else
  168.             ReturnValue.Text = "PEGetSelectionFormula Failure 1"
  169.           End If
  170.           
  171. End Sub
  172.  
  173. Sub Command8_Click ()
  174.           Rtn1% = PEGetGroupSelectionFormula(jobnum, TextHandle%, TextLength%)
  175.           If Rtn1% = 1 Then
  176.             ReturnValue.Text = "PEGetGroupSelectionFormula Success 1"
  177.             'Form1.Rslt.Text = "PEGetGrpSelFormula Success"
  178.           Else
  179.             ReturnValue.Text = "PEGetGroupSelectionFormula Failure 1"
  180.             'Form1.Rslt.Text = "PEGetGrpSelFormula Failure "
  181.           End If
  182.           
  183.  
  184.           Rtn2% = PEGetHandleString(TextHandle%, StrBuffer$, TextLength%)
  185.           If Rtn2% = 1 Then
  186.             GroupSelectionString = StrBuffer$
  187.             ReturnValue.Text = "PEGetGroupSelectionFormula Success 1"
  188.           Else
  189.             ReturnValue.Text = "PEGetGroupSelectionFormula Failure 1"
  190.           End If
  191.  
  192. End Sub
  193.  
  194. Sub Command9_Click ()
  195.  
  196. End Sub
  197.  
  198. Sub Form_Load ()
  199.     Form5.WindowState = 2
  200. End Sub
  201.  
  202. Sub Sel2_Click ()
  203.           'Rtn1% = PEGetSelectionFormula(jobnum, TextHandle%, TextLength%)
  204.           'If Rtn1% = 1 Then
  205.            ' ReturnValue.Text = "PEGetSelectionFormula Success 1"
  206.             ''Form1.Rslt.Text = "PEGetSelFormula Success"
  207.           'Else
  208.            ' ReturnValue.Text = "PEGetSelectionFormula Failure 1"
  209.             'Form1.Rslt.Text = "PEGetSelFormula Failure"
  210.          ' End If
  211.           
  212.  
  213.           'Rtn2% = PEGetHandleString(TextHandle%, StrBuffer$, TextLength%)
  214.           'If Rtn2% = 1 Then
  215.            ' RecordSelectionString = StrBuffer$
  216.             'ReturnValue.Text = "PEGetSelectionFormula Success 1"
  217.           'Else
  218.           '  ReturnValue.Text = "PEGetSelectionFormula Failure 1"
  219.          ' End If
  220.  
  221. End Sub
  222.  
  223. Sub Sel3_Click ()
  224.     RecordSelectionString.Text = " "
  225.     RecordSelectionString.SetFocus
  226.  
  227. End Sub
  228.  
  229. Sub Sel4_Click ()
  230.           RecSel = RecordSelectionString.Text
  231.           Rem MsgBox (RecSel)
  232.           SetSelectionRtn% = PESetSelectionFormula(jobnum, RecSel)
  233.  
  234.           If SetSelectionRtn% = 1 Then
  235.             ReturnValue.Text = "PESetSelectionFormula Success"
  236.             'Form1.Rslt.Text = "PESetSelFormula Success "
  237.           Else
  238.             ReturnValue.Text = "PeSetSelectionFormula Failure"
  239.             'Form1.Rslt.Text = "PESetSelFormula Failure"
  240.           End If
  241.  
  242. End Sub
  243.  
  244. Sub Sel6_Click ()
  245.           'Rtn1% = PEGetGroupSelectionFormula(jobnum, TextHandle%, TextLength%)
  246.          ' If Rtn1% = 1 Then
  247.           '  ReturnValue.Text = "PEGetGroupSelectionFormula Success 1"
  248.             'Form1.Rslt.Text = "PEGetGrpSelFormula Success"
  249.          ' Else
  250.           '  ReturnValue.Text = "PEGetGroupSelectionFormula Failure 1"
  251.             'Form1.Rslt.Text = "PEGetGrpSelFormula Failure "
  252.          ' End If
  253.  
  254.          ' Rtn2% = PEGetHandleString(TextHandle%, StrBuffer$, TextLength%)
  255.          ' If Rtn2% = 1 Then
  256.           '  GroupSelectionString = StrBuffer$
  257.           '  ReturnValue.Text = "PEGetGroupSelectionFormula Success 1"
  258.          ' Else
  259.           '  ReturnValue.Text = "PEGetGroupSelectionFormula Failure 1"
  260.          ' End If
  261.  
  262. End Sub
  263.  
  264. Sub Sel7_Click ()
  265.     GroupSelectionString.Text = " "
  266.     GroupSelectionString.S